package com.jia.jianzhiOffer;

/**
 * 剑指 Offer 46. 把数字翻译成字符串
 */
public class Pro46 {
    public int translateNum(int num) {
        if(num <= 9) {
            return 1;
        }
        int ba = num % 100;
        if(ba <= 9 || ba >=26) {return translateNum(num / 10);}
        else {
            return translateNum(num / 10) + translateNum( num / 100);
        }
    }
}
